package io2;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("osw.txt");
        OutputStreamWriter osw=new OutputStreamWriter(fos);
        osw.write("上来看风景时发生");
        osw.write(10);
        osw.write("fsfsf");
        osw.close();
    }
}
